// 这里是设备转化自定义转化
import type { App } from 'vue'

export default function (app: App<Element>) {
  app.directive('conversion-equipment', {
    created(el) {
      const type = el.textContent * 1
      switch (type) {
        case 0:
          el.textContent = 'PC端'
          break
        case 1:
          el.textContent = '手机端(Android)'
          break
        case 2:
          el.textContent = '手机端(iPhone)'
          break
      }
    }
  })
}
